package com.augurit.gzcgwsp.smartformCsdlwj.service;

import java.util.List;
import java.util.Map;

import org.springside.modules.orm.Page;

import com.augurit.common.base.service.ICrudService;
import com.augurit.gzcgwsp.smartformCsdlwj.entity.YwSrCsdlwj;
import com.augurit.gzcgwsp.smartformCsdlwj.web.form.CsdlwjForm;
import com.augurit.wf.bi.web.form.WfBusInstanceTaskForm;


public interface ISmartFormCsdlwjService extends ICrudService<CsdlwjForm, Long> {

    /**
     * sql查询出道路挖掘表的集合
     * @param id
     * @return
     */
    public List getListById(Long id);
    
    //获取公厕拆除案件集合
    public List<YwSrCsdlwj> getByAcceptNo(String acceptNo);

    /**
     * 查询受理日期
     * @param id
     * @param fileCode
     * @param tempId
     * @return
     */
	public String getSlrq(Long id, String fileCode, Long tempId);

	/**
	 * 如果延期保存延期的天数
	 * @param days
	 * @param taskInstDbid
	 * @param acceptNo
	 */
	public void insertDays(String days, String taskInstDbid, String acceptNo);

	/**
	 * 根据受理号获取延期的天数
	 * @param days
	 * @param taskInstDbid
	 * @param acceptNo
	 * @return
	 */
	public String getYqDays(String taskInstDbid, String acceptNo);

	/**
	 * 保存告知和延期天数的内容
	 * @param map
	 * @param taskInstDbid
	 * @param acceptNo
	 */
	public void insertOtherInfo(Map map, String taskInstDbid, String acceptNo);

	public Page<CsdlwjForm> searchInputData(Page<CsdlwjForm> pages, CsdlwjForm form,String area);

	public Long getTaskDbIdById(Long id);

	/**
	 * 该状态
	 * @param form
	 */
	public void updateJbpmState(CsdlwjForm form,WfBusInstanceTaskForm task,String acceptNo);

	public void deleteMore(String ids);
}